import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
import uvUI from '@/uni_modules/uv-ui-tools';
import store from '@/store/index.js';
import initModal from '@/components/MyModal/initModal.js';
import MyCommon from '@/components/MyCommon/index.vue';
import {IMG_BASE_URL} from '@/config/index.js';

initModal(Vue);
Vue.use(uvUI);

uni.$uv.config.unit = 'rpx';
Vue.prototype.IMG_BASE_URL = IMG_BASE_URL;

App.mpType = 'app'
const app = new Vue({
  ...App,
  store,
})
app.$mount()
Vue.component("MyCommon", MyCommon);
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif